package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
@Setter@Getter
public class CarPackageAudit {

    public static final Integer STATUS_IN_ROGRESS = 0;//审核中
    public static final Integer STATUS_REJECT = 1;//审核拒绝
    public static final Integer STATUS_PASS = 2;//审核通过
    public static final Integer STATUS_CANCEL = 3;//审核撤销
    private static final long serialVersionUID = 1L;

    /** 主键*/
    private Long id;
    /** 服务单项id*/
    private Long serviceItemId;
    /** 服务单项备注*/
    private String serviceItemInfo;
    /** 服务单项审核价格*/
    private BigDecimal serviceItemPrice;
    /** 服务单项对象 */
    private ServiceItem serviceItem;
    /** 流程实例id*/
    private String instanceId;
    /** 创建者*/
    private String creator;
    /** 当前审核人id*/
    private Long auditorId;
    /** 当前审核人对象*/
    private User auditor;
    /** 关联流程id*/
    private Long bpmnInfoId;
    /** 备注*/
    private String info;
    /** 状态【进行中0/审核拒绝1/审核通过2/审核撤销3】*/
    private Integer status = STATUS_IN_ROGRESS;
    /** 审核时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss")
    private Date auditTime;
    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss")
    private Date createTime;
    /** 服务单项名称*/
    private String serviceItemName;
    /** 关联流程定义对象 */
    private BpmnInfo bpmnInfo;
}